<?php

namespace App\Http\Resources;

//use Illuminate\Http\Resources\Json\Resource;

use App\Http\Responses\Resource;

class Article extends Resource
{
    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request
     * @return array
     */
    public function toArray($request)
    {
        return [
            'id' => $this->id,
            'article' => $this->article,
            'word_count' => $this->word_count,
            'create_time' => $this->create_time,
            'last_editdate' => $this->last_editdate
        ];

    }
}
